package com.zmovie.framework.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName movie_rate
 */
@TableName(value ="movie_rate")
@Data
public class MovieRate implements Serializable {
    /**
     * 评分id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 电影id
     */
    private Integer movieId;
    /**
     * 电影评分
     */
    private BigDecimal score;

    /**
     * 评分人数
     */
    private Integer rateNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}